import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import SvgIcon from './components/SvgIcon/index.vue'
import { setupStore } from './store'
import router, { setupRouter } from './router' // 路由

import './styles/index.scss'
const app = createApp(App)
app.component('svg-icon', SvgIcon)
app.use(ElementPlus)
setupStore(app)
setupRouter(app) // 引入路由
router.isReady().then(() => {
  app.mount('#app')
})
